# <---------- set c++ standard ------------->
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

aux_source_directory(${PROJECT_SOURCE_DIR}/src/online SRC_LIST)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/common SRC_COMMON_LIST)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/Reactor SRC_Reactor_LIST)

SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

include_directories(../../include
        ../../include/simhash
        ../../include/simhash/deps
        ../../include/simhash/deps/cppjieba
        ../../include/simhash/deps/limonp
        ../../include/simhash/include/simhash
        ../Reactor/
)

add_executable(online ${SRC_LIST} ${SRC_COMMON_LIST} ${SRC_Reactor_LIST})

target_link_libraries(online log4cpp pthread mysqlclient redis++ hiredis)
